<template>
    <div class="particulars">
        <v-detail :detailData="inputData" :inputConfig="inputConfig" :rules="rules" ref="input"></v-detail>
    </div>
</template>

<script>
    import detail from "commons/Detail";
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        name: "particulars",
        mixins: [baseMixin],
        props: {
            inputData: {
                type: Object
            }
        },
        data() {
            return {
                flag: false,
                rules: {
                    lottablevalidationkey: [
                        {required: true, message: "清选择订单类型说明", trigger: 'blur'},
                    ],
                    description: [
                        {required: true, message: "清填写序列", trigger: 'blur'},
                    ]
                },
            }
        },
        computed: {
            inputConfig() {
                return [
                    [
                        {
                            type: "input",
                            label: this.$t('outbound.lottablevalidation'),
                            props: "lottablevalidationkey",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('common.desc'),
                            props: "description",
                            disabled: this.flag
                        },
                    ],
                    [
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'01'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'02'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'03'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'04'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'05'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'06'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'07'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'08'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'09'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'10'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'11'}),
                        },
                        {
                            type: "",
                            label: this.$t('config.batchProp',{no:'12'}),
                        },
                    ],
                    [
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable01onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable02onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable03onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable04onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable05onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable06onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable07onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable08onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable09onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable10onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable11onrfreceipt",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.show'),
                            props: "showlottable12onrfreceipt",
                            disabled: this.flag
                        },
                    ],
                    [
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable01onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable02onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable03onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable04onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable05onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable06onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable07onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable08onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable09onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable10onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable11onrfreceiptmandatory",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.requiredItem'),
                            props: "lottable12onrfreceiptmandatory",
                            disabled: this.flag
                        },
                    ],
                    [
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable1",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable2",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable3",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable6",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable7",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable8",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable9",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: this.$t('outbound.comminglelottable1'),
                            props: "comminglelottable10",
                            disabled: this.flag
                        },
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'01'}),
                            props: "rflabel01",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'02'}),
                            props: "rflabel02",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'03'}),
                            props: "rflabel03",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'04'}),
                            props: "rflabel04",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'05'}),
                            props: "rflabel05",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'06'}),
                            props: "rflabel06",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'07'}),
                            props: "rflabel07",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'08'}),
                            props: "rflabel08",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'09'}),
                            props: "rflabel09",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'10'}),
                            props: "rflabel10",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'11'}),
                            props: "rflabel11",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.rflabel',{no:'12'}),
                            props: "rflabel12",
                            disabled: this.flag
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'01'}),
                            props: "generatemask01",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'02'}),
                            props: "generatemask02",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'03'}),
                            props: "generatemask03",
                            disabled: this.flag
                        },
                        /*
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'04'}),
                            props: "generatemask04",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'05'}),
                            props: "generatemask05",
                            disabled: this.flag
                        },
                        */
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'06'}),
                            props: "generatemask06",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'07'}),
                            props: "generatemask07",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'08'}),
                            props: "generatemask08",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'09'}),
                            props: "generatemask09",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'10'}),
                            props: "generatemask10",
                            disabled: this.flag
                        },
                    ],
                    [
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'01'}),
                            props: "maskgenrule01",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'02'}),
                            props: "maskgenrule02",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'03'}),
                            props: "maskgenrule03",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                        /*
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'04'}),
                            props: "maskgenrule04",
                            disabled: this.flag,
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.generatemask',{no:'05'}),
                            props: "maskgenrule05",
                            disabled: this.flag,
                        },
                        */
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'06'}),
                            props: "maskgenrule06",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'07'}),
                            props: "maskgenrule07",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'08'}),
                            props: "maskgenrule08",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'09'}),
                            props: "maskgenrule09",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                        {
                            type: "select",
                            label: this.$t('outbound.generatemask',{no:'10'}),
                            props: "maskgenrule10",
                            disabled: this.flag,
                            options: this.getOptions("querycodeLkup/LOTMASKRUL"),
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'01'}),
                            props: "genmaxlength01",
                            disabled: this.flag,
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'02'}),
                            props: "genmaxlength02",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'03'}),
                            props: "genmaxlength03",
                            disabled: this.flag
                        },
                        /*
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'04'}),
                            props: "genmaxlength04",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'05'}),
                            props: "genmaxlength05",
                            disabled: this.flag
                        },
                        */
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "checkbox",
                            label: "",
                            props: "",
                            hidden: "0",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'06'}),
                            props: "genmaxlength06",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'07'}),
                            props: "genmaxlength07",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'08'}),
                            props: "genmaxlength08",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'09'}),
                            props: "genmaxlength09",
                            disabled: this.flag
                        },
                        {
                            type: "input",
                            label: this.$t('outbound.genmaxlength',{no:'10'}),
                            props: "genmaxlength10",
                            disabled: this.flag
                        },
                    ]
                ]
            }
        },
        methods: {},
        mounted() {
            if (this.$store.state.wms.toUpperCase().includes('WMWHSE')) {
                //仓库级
                this.flag = true;
            }
        },
        components: {
            "v-detail": detail,
        },

    }
</script>

<style scoped>

</style>
